import 'package:fish_redux/fish_redux.dart';

import 'action.dart';
import 'state.dart';

Reducer<VillageGridState> buildReducer() {
  return asReducer(
    <Object, Reducer<VillageGridState>>{
      VillageGridAction.action: _onAction,
      VillageGridAction.refresh: _onAction,
    },
  );
}

VillageGridState _onAction(VillageGridState state, Action action) {
  final VillageGridState newState = state.clone();
  return newState;
}
